<!--
 * @Description: 
 * @Autor: Zhu_liangyu
 * @Date: 2020-05-31 15:55:58
--> 
<template>
  <div>
    <page-table
      rowKey="loginLogId"
      ref="loginLogPageTable"
      :query-api="loginLog_queryPageApi"
      :columns="columns"
      :query-param="queryParam"
      :search-data="searchData"
      :show-add-button="false"
      :show-delete-button="false"
      :toolBar="[]"
      :selection="null"
      :col-span="6"
    >
      <template #customLoginUserName="{text}">
        <!-- <router-link :to="loginLogFormUrl+'/'+record.loginLogId">
         
        </router-link>-->
        <span>{{text}}</span>
      </template>
    </page-table>
  </div>
</template>

<script>
import { loginLogFormUrl, loginLog_queryPageApi } from "@/api/org/loginLog";

const columns = [
  {
    title: "登录名称",
    dataIndex: "loginUserName",
    scopedSlots: { customRender: "customLoginUserName" },
  },
  { title: "登录ip", dataIndex: "loginIp" },

  { title: "登录地址", dataIndex: "loginArea" },

  { title: "浏览器", dataIndex: "browser" },

  { title: "操作系统", dataIndex: "os" },

  { title: "登录日期", dataIndex: "createTime" },
];
const searchData = [
  {
    label: "登录名称",
    name: "loginUserName",
    type: "input",
  },
  {
    label: "登录ip",
    name: "loginIp",
    type: "input",
  },
];
export default {
  data() {
    return {
      columns,
      searchData,
      queryParam: {},
      loginLogFormUrl,
      loginLog_queryPageApi,
    };
  },
};
</script>